import Team from "../pages/Team.vue";
import Index from "../pages/Index.vue";
import User from "../pages/User.vue";
import Search from "../pages/Search.vue";
import UserEdit from "../pages/UserEdit.vue";
import SearchResult from "../pages/SearchResult.vue";
import UserLogin from "../pages/UserLogin.vue";
//定义路由器规则
//静态路由，没有动态参数
const routes = [
    {path: '/', component: Index},
    {path: '/team', title: '找队伍', component: Team},
    {path: '/user', title: '个人信息', component: User},
    {path: '/search', title: '找伙伴', component: Search},
    // 使用UserEdit.vue组件
    {path: '/user/edit', title: '编辑信息', component: UserEdit},
    // 搜索结果页面的路由挂载
    {path: '/user/list', title: '用户列表', component: SearchResult},
    {path: '/user/login', title: '登录', component: UserLogin},
]
//导出routes
export default routes;